﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Web;

namespace Archives
{
    public class WKF_MessageFolderMap : EntityTypeConfiguration<WKF_MessageFolder>
    {
        public WKF_MessageFolderMap()
        {
            // Primary Key
            this.HasKey(t => t.FolderID);
            this.HasKey(t => t.MessageID);
            // Properties
            //                
            this.Property(t => t.MessageID)
                .IsRequired()
                .HasMaxLength(50)
                .HasColumnName("MessageID");
            //                
            this.Property(t => t.FolderID)
                .IsRequired()
                .HasMaxLength(50)
                .HasColumnName("FolderID");
            //                
            this.Property(t => t.SortNo)
                .HasColumnName("SortNo");
            // Table & Column Mappings
            this.ToTable("WKF_MessageFolder");


        }
    }
}